<br>
<table width="80%"  cellspacing="5" cellpadding="0" border="0">	
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="nome" class="labelFieldHeader"><span class="campoObrigatorio">*</span>Nome: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'nome' ,:size => 30,:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="perfil_id" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Perfil: </label>
					</td>
					<td align="left" height="20">
						<%= collection_select(:motorista, :perfil_id, Perfil.find(:all ,:order =>:descricao), :id, :descricao )%>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="cep" class="labelFieldHeader"><span class="campoObrigatorio">*</span>Cep: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'cep',:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="endereco" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Endereço: </label> 
					</td>
					<td align="left" height="20">
						<%= text_field 'motorista', 'endereco' ,:size =>60 ,:class =>'inputText' %>		
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="complemento" class="labelFieldHeader"> Complemento: </label> 
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'complemento',:size => 20 ,:class =>'inputText'  %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="numero" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Numero: </label>  
					</td>
					<td align="left" height="20">
						<%= text_field 'motorista', 'numero',:size =>5 ,:class =>'inputText'  %>
					</td>	
				</tr>
			</table>
		</td>
	</tr>	
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="email" class="labelFieldHeader"> Email: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'email',:class =>'inputText'  %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="bairro" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Bairro: </label>
					</td>
					<td align="left" height="20">
						<%= text_field 'motorista', 'bairro',:size =>40 ,:class =>'inputText' %>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="telefone_particular" class="labelFieldHeader"> <span class="campoObrigatorio">*</span>Telefone Resindecial: </label>
					</td>
					<td align="left" width="43%" height="20">
									<%= text_field 'motorista', 'telefone_particular',:size =>10,:class =>'inputText'  %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
									<label for="pais" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Pais: </label>
					</td>
					<td align="left" height="20">
						<% @pais = Pais.find(:all ,:order =>:nome)%>
						<%= collection_select(:motorista, :pais_id, @pais, :id, :nome ,:class=>"combosForm", :prompt =>'-- selecione --',
								 :onChange => "alert('rodolfo');"
								
								
								 )  %>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="telefone_comercial" class="labelFieldHeader"> Telefone Comercial: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'telefone_comercial',:size =>10,:class =>'inputText'  %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="estado" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Estado: </label>
					</td>
					<td align="left" height="20">
						<span id="estado">
							 <%= render :partial => 'estado' %>
						</span>
					</td>	
				</tr>
			</table>
		</td>
	</tr>		
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="identidade" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Identidade: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'identidade',:size=>10 ,:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="cidade" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Cidade: </label>
					</td>
					<td align="left" height="20">
						<span id="cidade">
							 <%= render :partial => 'cidade' %>
						</span>
					</td>	
				</tr>
			</table>
		</td>
	</tr>		
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="cpf" class="labelFieldHeader"><span class="campoObrigatorio">*</span> CPF: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'cpf' ,:size=>11 ,:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="data_nascimento" class="labelFieldHeader"><span class="campoObrigatorio">*</span>Data de nascimento: </label>
					</td>
					<td align="left" height="20">
						<%= date_select('motorista', 'data_nascimento', :order =>[:day, :month,:year])%>
					</td>	
				</tr>
			</table>
		</td>
	</tr>		
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="nome_paterno" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Nome do Pai: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'nome_paterno' ,:size => 30,:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
									<label for="nome_materno" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Nome do Mae: </label>
					</td>
					<td align="left" height="20">
						<%= text_field 'motorista', 'nome_materno',:size => 30,:class =>'inputText'%>
					</td>	
				</tr>
			</table>
		</td>
	</tr>					
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="cnh" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Codigo da CNH: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= text_field 'motorista', 'cnh',:class =>'inputText' %>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="emissao_cnh" class="labelFieldHeader"><span class="campoObrigatorio">*</span>Emissao da CNH: </label>
					</td>
					<td align="left" height="20">
						<%= date_select('motorista', 'emissao_cnh', :order => [:day,:month,:year])%>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						<label for="categoria_id" class="labelFieldHeader"><span class="campoObrigatorio">*</span> Categoria: </label>
					</td>
					<td align="left" width="43%" height="20">
						<%= collection_select(:motorista, :categoria_id, Categoria.find(:all ,:order =>:descricao), :id, :descricao )%>
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="validade_cnh" class="labelFieldHeader"><span class="campoObrigatorio">*</span>Validade da CNH: </label>
					</td>
					<td align="left" height="20">
						<%= date_select('motorista', 'validade_cnh', :order => [:day,:month,:year])%>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td  width="30%" align="center"> 
			<table border="0" height="20" width="100%">
				<tr>
					<td width="57%" nowrap="true" align="right" height="20">
						
					</td>
					<td align="left" width="43%" height="20">
					</td>
				</tr>
			</table>
		</td>
		<td width="70%">
			<table border="0" height="20" cellpadding=0" cellspacing="0">
				<tr>
					<td width="150" nowrap="true" align="right" height="20">
						<label for="observacao_cnh" class="labelFieldHeader"> Observações: </label>
					</td>
					<td align="left" height="20">
						<%= text_area 'motorista', 'observacao_cnh', :cols => '50', :rows=>'3' ,:class =>'inputText' %>
					</td>	
				</tr>
			</table>
		</td>
	</tr>
</table>


